package com.quan.common.base.bean;

public class ResponseMsg {

	/**
	 * 状态
	 */
	private boolean status ;
	
	/**
	 * 状态码
	 */
	private int statusCode ;
	
	/**
	 * 信息
	 */
	private String message ;
	
	/**
	 * 空间名称
	 */
	private String bucketName ;
	
	/**
	 * 文件Key
	 */
	private String key ;
	
	/**
	 * 文件名称
	 */
	private String fname ;
	
	/**
	 * 文件大小
	 */
	private String fsize ;
	
	/**
	 * 文件类型，文件后缀名
	 */
	private String ftype ;
	
	/**
	 * 文件下载URL地址
	 */
	private String url ;

	public ResponseMsg(boolean status, int statusCode, String message, String bucketName, String fname, String fsize, String ftype, String url) {
		super();
		this.status = status;
		this.statusCode = statusCode;
		this.message = message;
		this.bucketName = bucketName;
		this.fname = fname;
		this.fsize = fsize;
		this.ftype = ftype;
		this.url = url;
	}
	
	public ResponseMsg(boolean status, int statusCode, String message, String bucketName, String key) {
		super();
		this.status = status;
		this.statusCode = statusCode;
		this.message = message;
		this.bucketName = bucketName;
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getBucketName() {
		return bucketName;
	}

	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getFsize() {
		return fsize;
	}

	public void setFsize(String fsize) {
		this.fsize = fsize;
	}

	public String getFtype() {
		return ftype;
	}

	public void setFtype(String ftype) {
		this.ftype = ftype;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return "ResponseMsg [status=" + status + ", statusCode=" + statusCode + ", message=" + message + ", bucketName=" + bucketName + ", fname=" + fname + ", fsize=" + fsize + ", ftype=" + ftype + ", url=" + url + "]";
	}
	
	
}
